import {
	ApiUtils,
	_axios
} from 'api/apiUtil.js';
import constant from 'util/constant.js';
const api = {
	list: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/crm/enterprise/list", request, successCallback, failCallback, exceptionCallback);
	},
	save: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/crm/enterprise/save", request, successCallback, failCallback, exceptionCallback);
	},
	toUpdate: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/crm/enterprise/toUpdate", request, successCallback, failCallback, exceptionCallback);
	},
	update: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/crm/enterprise/update", request, successCallback, failCallback, exceptionCallback);
	},
	remove: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/crm/enterprise/remove", request, successCallback, failCallback, exceptionCallback);
	},
}

export default api;
